﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020002CB RID: 715
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueUpdateLevelBaseInfoScNotify : IMessage<ChessRogueUpdateLevelBaseInfoScNotify>, IMessage, IEquatable<ChessRogueUpdateLevelBaseInfoScNotify>, IDeepCloneable<ChessRogueUpdateLevelBaseInfoScNotify>, IBufferMessage
	{
		// Token: 0x1700094E RID: 2382
		// (get) Token: 0x06002015 RID: 8213 RVA: 0x0005B2EF File Offset: 0x000594EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueUpdateLevelBaseInfoScNotify> Parser
		{
			get
			{
				return ChessRogueUpdateLevelBaseInfoScNotify._parser;
			}
		}

		// Token: 0x1700094F RID: 2383
		// (get) Token: 0x06002016 RID: 8214 RVA: 0x0005B2F6 File Offset: 0x000594F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueUpdateLevelBaseInfoScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000950 RID: 2384
		// (get) Token: 0x06002017 RID: 8215 RVA: 0x0005B308 File Offset: 0x00059508
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueUpdateLevelBaseInfoScNotify.Descriptor;
			}
		}

		// Token: 0x06002018 RID: 8216 RVA: 0x0005B30F File Offset: 0x0005950F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueUpdateLevelBaseInfoScNotify()
		{
		}

		// Token: 0x06002019 RID: 8217 RVA: 0x0005B317 File Offset: 0x00059517
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueUpdateLevelBaseInfoScNotify(ChessRogueUpdateLevelBaseInfoScNotify other) : this()
		{
			this.levelStatus_ = other.levelStatus_;
			this.reason_ = other.reason_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600201A RID: 8218 RVA: 0x0005B348 File Offset: 0x00059548
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueUpdateLevelBaseInfoScNotify Clone()
		{
			return new ChessRogueUpdateLevelBaseInfoScNotify(this);
		}

		// Token: 0x17000951 RID: 2385
		// (get) Token: 0x0600201B RID: 8219 RVA: 0x0005B350 File Offset: 0x00059550
		// (set) Token: 0x0600201C RID: 8220 RVA: 0x0005B358 File Offset: 0x00059558
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueLevelStatus LevelStatus
		{
			get
			{
				return this.levelStatus_;
			}
			set
			{
				this.levelStatus_ = value;
			}
		}

		// Token: 0x17000952 RID: 2386
		// (get) Token: 0x0600201D RID: 8221 RVA: 0x0005B361 File Offset: 0x00059561
		// (set) Token: 0x0600201E RID: 8222 RVA: 0x0005B369 File Offset: 0x00059569
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueUpdateLevelStatus Reason
		{
			get
			{
				return this.reason_;
			}
			set
			{
				this.reason_ = value;
			}
		}

		// Token: 0x0600201F RID: 8223 RVA: 0x0005B372 File Offset: 0x00059572
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueUpdateLevelBaseInfoScNotify);
		}

		// Token: 0x06002020 RID: 8224 RVA: 0x0005B380 File Offset: 0x00059580
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueUpdateLevelBaseInfoScNotify other)
		{
			return other != null && (other == this || (this.LevelStatus == other.LevelStatus && this.Reason == other.Reason && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002021 RID: 8225 RVA: 0x0005B3C0 File Offset: 0x000595C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.LevelStatus != ChessRogueLevelStatus.ChessRogueLevelIdle)
			{
				num ^= this.LevelStatus.GetHashCode();
			}
			if (this.Reason != ChessRogueUpdateLevelStatus.ByNone)
			{
				num ^= this.Reason.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002022 RID: 8226 RVA: 0x0005B424 File Offset: 0x00059624
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002023 RID: 8227 RVA: 0x0005B42C File Offset: 0x0005962C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002024 RID: 8228 RVA: 0x0005B438 File Offset: 0x00059638
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Reason != ChessRogueUpdateLevelStatus.ByNone)
			{
				output.WriteRawTag(88);
				output.WriteEnum((int)this.Reason);
			}
			if (this.LevelStatus != ChessRogueLevelStatus.ChessRogueLevelIdle)
			{
				output.WriteRawTag(96);
				output.WriteEnum((int)this.LevelStatus);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002025 RID: 8229 RVA: 0x0005B494 File Offset: 0x00059694
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.LevelStatus != ChessRogueLevelStatus.ChessRogueLevelIdle)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.LevelStatus);
			}
			if (this.Reason != ChessRogueUpdateLevelStatus.ByNone)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Reason);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002026 RID: 8230 RVA: 0x0005B4EC File Offset: 0x000596EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueUpdateLevelBaseInfoScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.LevelStatus != ChessRogueLevelStatus.ChessRogueLevelIdle)
			{
				this.LevelStatus = other.LevelStatus;
			}
			if (other.Reason != ChessRogueUpdateLevelStatus.ByNone)
			{
				this.Reason = other.Reason;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002027 RID: 8231 RVA: 0x0005B53C File Offset: 0x0005973C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002028 RID: 8232 RVA: 0x0005B548 File Offset: 0x00059748
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 88U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.LevelStatus = (ChessRogueLevelStatus)input.ReadEnum();
					}
				}
				else
				{
					this.Reason = (ChessRogueUpdateLevelStatus)input.ReadEnum();
				}
			}
		}

		// Token: 0x04000D28 RID: 3368
		private static readonly MessageParser<ChessRogueUpdateLevelBaseInfoScNotify> _parser = new MessageParser<ChessRogueUpdateLevelBaseInfoScNotify>(() => new ChessRogueUpdateLevelBaseInfoScNotify());

		// Token: 0x04000D29 RID: 3369
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000D2A RID: 3370
		public const int LevelStatusFieldNumber = 12;

		// Token: 0x04000D2B RID: 3371
		private ChessRogueLevelStatus levelStatus_;

		// Token: 0x04000D2C RID: 3372
		public const int ReasonFieldNumber = 11;

		// Token: 0x04000D2D RID: 3373
		private ChessRogueUpdateLevelStatus reason_;
	}
}
